<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>iframe标签 | 学习笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="Jiesen">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../CSS/CSS简介.html" />
    
    
    <link rel="prev" href="../HTML5/audio和vedio元素.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2.2"
        data-chapter-title="iframe标签"
        data-filepath="HTML5/iframe标签.md"
        data-basepath=".."
        data-revision="Sun Sep 23 2018 15:52:51 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="HTML/HTML.html">
            
                
                    <a href="../HTML/HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="HTML/html简介.html">
            
                
                    <a href="../HTML/html简介.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        html简介
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="HTML/a链接.html">
            
                
                    <a href="../HTML/a链接.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        a链接
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="HTML/标签.html">
            
                
                    <a href="../HTML/标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="HTML/img.html">
            
                
                    <a href="../HTML/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        img
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="HTML/列表.html">
            
                
                    <a href="../HTML/列表.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="HTML/form表单.html">
            
                
                    <a href="../HTML/form表单.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="HTML/常用from表单类型.html">
            
                
                    <a href="../HTML/常用from表单类型.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        常用from表单类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="HTML/tabel表格.html">
            
                
                    <a href="../HTML/tabel表格.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        tabel表格
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="HTML5/HTML5新增元素.html">
            
                
                    <a href="../HTML5/HTML5新增元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        HTML5新增元素
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="HTML5/audio和vedio元素.html">
            
                
                    <a href="../HTML5/audio和vedio元素.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        audio和vedio元素
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="2.2" data-path="HTML5/iframe标签.html">
            
                
                    <a href="../HTML5/iframe标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        iframe标签
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="CSS/CSS简介.html">
            
                
                    <a href="../CSS/CSS简介.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        CSS简介
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="CSS/CSS选择器.html">
            
                
                    <a href="../CSS/CSS选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        CSS选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >学习笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="iframe&#x5143;&#x7D20;">iframe&#x5143;&#x7D20;</h1>
<h3 id="&#x4E00;&#x3001;iframe&#x5185;&#x5D4C;&#x6846;&#x67B6;">&#x4E00;&#x3001;iframe&#x5185;&#x5D4C;&#x6846;&#x67B6;</h3>
<h4 id="1&#x8BED;&#x6CD5;&#xFF1A;">1.&#x8BED;&#x6CD5;&#xFF1A;</h4>
<pre><code>   &lt;iframe src=&quot;URL&quot; name=&quot;&#x6846;&#x67B6;&#x540D;&quot;&gt; ~ &lt;/iframe&gt;
</code></pre><h5 id="1&#x5C0F;&#x7ED3;&#xFF1A;iframe">1.&#x5C0F;&#x7ED3;&#xFF1A;iframe</h5>
<pre><code>    &#x53EF;&#x4EE5;&#x5F15;&#x5165;&#x5176;&#x4ED6;&#x9875;&#x9762;&#x6765;&#x4F7F;&#x7528;
    &#x4F8B;&#x5982;&#xFF1A;&#x5730;&#x56FE;&#x7EC4;&#x4EF6;&#x3001;&#x5BA2;&#x670D;&#x7CFB;&#x7EDF;&#x7B49;&#x7B2C;&#x4E09;&#x65B9;&#x5DE5;&#x5177;

    &#x6BD5;&#x7ADF;&#x662F;&#x5F15;&#x7528;&#x522B;&#x4EBA;&#x7684;&#x9875;&#x9762;,&#x6240;&#x4EE5;&#x6709;&#x4E9B;&#x6837;&#x5F0F;&#x6216;&#x529F;&#x80FD;&#x4E0D;&#x80FD;&#x6539;&#x53D8;
</code></pre><h6 id="&#x4F8B;&#x5982;&#xFF1A;iframe-src&#x4E8C;&#x7EA7;&#x9875;&#x9762;html-width800-height600iframe">&#x4F8B;&#x5982;&#xFF1A;<code>&lt;iframe src=&quot;&#x4E8C;&#x7EA7;&#x9875;&#x9762;.html&quot; width=&quot;800&quot; height=&quot;600&quot;&gt;&lt;/iframe&gt;</code></h6>
<pre><code>      &lt;!--
        self    &#x81EA;&#x8EAB;&#x8DF3;&#x8F6C;
    --&gt;
    &lt;a href=&quot;https://baidu.com&quot; target=&quot;_self&quot;&gt;&#x8DF3;&#x8F6C;&#x767E;&#x5EA6;&#xFF08;self&#xFF09;&lt;/a&gt;
    &lt;!--
        parent   &#x8BA9;&#x7236;&#x6846;&#x67B6;&#x8FDB;&#x884C;&#x8DF3;&#x8F6C;
    --&gt;
    &lt;a href=&quot;https://baidu.com&quot; target=&quot;_parent&quot;&gt; &#x8DF3;&#x8F6C;&#x767E;&#x5EA6;&#xFF08;parent)&lt;/a&gt;

    &lt;!--

    top  &#x8BA9;&#x6700;&#x9876;&#x5C42;&#x7684;&#x6846;&#x67B6;&#x8DF3;&#x8F6C;
    --&gt;

    &lt;a href=&quot;https://baidu.com&quot; target=&quot;_top&quot;&gt; &#x8DF3;&#x8F6C;&#x767E;&#x5EA6;&#xFF08;top)&lt;/a&gt;
</code></pre><table>
<thead>
<tr>
<th>&#x5C5E;&#x6027;</th>
<th style="text-align:right">&#x5C5E;&#x6027;&#x503C;</th>
<th>&#x8BF4;&#x660E;</th>
</tr>
</thead>
<tbody>
<tr>
<td>width</td>
<td style="text-align:right">px , %</td>
<td>&#x6307;&#x5B9A;&#x6846;&#x67B6;&#x7684;&#x5BBD;&#x5EA6;</td>
</tr>
<tr>
<td>height</td>
<td style="text-align:right">px , %</td>
<td>&#x6307;&#x5B9A;&#x6846;&#x67B6;&#x7684;&#x9AD8;&#x5EA6;</td>
</tr>
<tr>
<td>scrolling</td>
<td style="text-align:right">yes,no,auto</td>
<td>&#x662F;&#x5426;&#x663E;&#x793A;&#x6EDA;&#x52A8;&#x6761;</td>
</tr>
<tr>
<td>frameborder</td>
<td style="text-align:right">1, 0</td>
<td>&#x662F;&#x5426;&#x663E;&#x793A;&#x8FB9;&#x6846;</td>
</tr>
</tbody>
</table>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../HTML5/audio和vedio元素.html" class="navigation navigation-prev " aria-label="Previous page: audio和vedio元素"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../CSS/CSS简介.html" class="navigation navigation-next " aria-label="Next page: CSS简介"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
